<!DOCTYPE html>
<html>
<!-- head -->
{include file="common/page/head"}
<link rel="stylesheet" href="__app__/admin/view/AssembleTemplate/addTemplate/addTemplate.css" />
<body>
<!---------------- 添加商品 ------------------->
<!-- 页头 -->
{include file="common/page/header"}
<!-- 主体 -->
<div class="content container-fluid {if $leftBarScale eq '1'} scale {/if} ">
    <div class="row">
        <div class="col-md-2 left-section">
            <!-- 左导航菜单 -->
            {include file="common/page/menu"}

        </div>
        <div class="col-md-10 right-section">
            <!--内容区域-->
            <h3><i class="icon iconfont">{$Think.session.currentMenu.icon}</i>添加模板</h3>
            <div class="inner-section row">
                <div id="content">
                    <form action="#" method="post" id="myForm"  enctype="multipart/form-data">
                        <table class="table table-striped table-hover table-bordered table-base">
                            <tr>
                                <td class="td1"><label><span class="must-tag">*</span>模板名称</label></td>
                                <td class="td2"><input type="text" class="form-control" id="name" name="name" placeholder="模板名称"></td>
                                <td class="td3"></td>
                            </tr>
                            <tr>
                                <td class="td1"><label><span class="must-tag">*</span>属性项</label></td>
                                <td class="td2">
                                    {foreach name = "propertyList" item = "property"}
                                    <div class="property">
                                        <dl class="clearfix">
                                            <dt><span>【{$property.name}】</span></dt>
                                            <dd>
                                                <ul>
                                                    {foreach name = "property.list" item = "value"}
                                                    <li><label><input type="checkbox" class="value" value="{$value.id}">{$value.value}</label></li>
                                                    {/foreach}
                                                </ul>
                                            </dd>
                                        </dl>
                                    </div>
                                    {/foreach}
                                </td>
                                <td class="td3"></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <input type="hidden" value="" name="ptids" id="ptids">
                                    <button type="button" class="btn btn-success btn-md" id='save'>提交</button>
                                    <a href="javascript:window.history.go(-1);" class="btn btn-default btn-md">返回</a>
                                </td>
                                <td></td>
                            </tr>
                        </table>

                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 页脚 -->
{include file="common/page/footer"}
<!-- jsfiles -->
{include file="common/page/jsfiles"}
<script type="text/javascript" src="__static__/js/form/jquery.form.js"></script>
<script type="text/javascript" src="__static__/js/form/jquery.validate.js"></script>
<script type="text/javascript" src="__static__/js/form/jquery.validate.extend.js"></script>
<script type="text/javascript" src="__app__/admin/view/AssembleTemplate/addTemplate/addTemplate.js"></script>
</body>
</html>